#-------------------------------------------------
#
# Project created by QtCreator 2017-06-15T10:16:50
#
#-------------------------------------------------

QT       += core gui sql network printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = watchdog_server
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


SOURCES += main.cpp\
        mainwindow.cpp \
    common.cpp \
    Logger.cpp \
    AutoReleaseRunable.cpp \
    Runable.cpp \
    SimpleRunable.cpp \
    dbservice.cpp \
    syscfg.cpp \
    computer.cpp \
    computerwindget.cpp \
    alarmreq.cpp \
    commonresp.cpp \
    reportstatusreq.cpp \
    BaseMsg.cpp \
    TcpConnectHandler.cpp \
    TcpServer.cpp \
    TLV.cpp \
    TLVEncodedObject.cpp \
    cJSON.cpp \
    computermanager.cpp \
    computerinfowidget.cpp \
    computeralarmlog.cpp \
    smtpapi/emailaddress.cpp \
    smtpapi/mimeattachment.cpp \
    smtpapi/mimecontentformatter.cpp \
    smtpapi/mimefile.cpp \
    smtpapi/mimehtml.cpp \
    smtpapi/mimeinlinefile.cpp \
    smtpapi/mimemessage.cpp \
    smtpapi/mimemultipart.cpp \
    smtpapi/mimepart.cpp \
    smtpapi/mimetext.cpp \
    smtpapi/quotedprintable.cpp \
    smtpapi/smtpclient.cpp \
    sendemailtask.cpp \
    computerdisplaywidget.cpp \
    qcustomplot.cpp \
    apprunninginfo.cpp \
    commonreq.cpp \
    getapprunningstateres.cpp \
    getsystemrunningstateres.cpp \
    diskinfotlvencodedobj.cpp \
    getserverfromdb.cpp \
    appupdatereq.cpp \
    needupdateappcomputerwidget.cpp
    appupdatereq.cpp

HEADERS  += mainwindow.h \
    common.h \
    Logger.h \
    AutoReleaseRunable.h \
    Runable.h \
    SimpleRunable.h \
    dbservice.h \
    syscfg.h \
    computer.h \
    computerwindget.h \
    alarmreq.h \
    commonresp.h \
    reportstatusreq.h \
    BaseMsg.h \
    TcpConnectHandler.h \
    TcpServer.h \
    TLV.h \
    TLVEncodedObject.h \
    cJSON.h \
    computermanager.h \
    computerinfowidget.h \
    computeralarmlog.h \
    smtpapi/emailaddress.h \
    smtpapi/mimeattachment.h \
    smtpapi/mimecontentformatter.h \
    smtpapi/mimefile.h \
    smtpapi/mimehtml.h \
    smtpapi/mimeinlinefile.h \
    smtpapi/mimemessage.h \
    smtpapi/mimemultipart.h \
    smtpapi/mimepart.h \
    smtpapi/mimetext.h \
    smtpapi/quotedprintable.h \
    smtpapi/smtpclient.h \
    smtpapi/smtpmime.h \
    sendemailtask.h \
    computerdisplaywidget.h \
    qcustomplot.h \
    apprunninginfo.h \
    commonreq.h \
    getapprunningstateres.h \
    getsystemrunningstateres.h \
    diskinfotlvencodedobj.h \
    getserverfromdb.h \
    appupdatereq.h \
    needupdateappcomputerwidget.h
    appupdatereq.h

FORMS    += mainwindow.ui \
    computerwindget.ui \
    computerinfowin.ui \
    computerdisplaywidget.ui \
    getserverfromdb.ui \
    needupdateappcomputerwidget.ui

RESOURCES += \
    ui.qrc

RC_ICONS = WatchDog.ico

win32: LIBS += -lWS2_32 -lWinmm -L$$PWD/mysql/lib/ -llibmysql

INCLUDEPATH += $$PWD/mysql/include
